package com.css.dzj.dzjdzqs.modules.datafromjcss.entity;


import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

/**
 * 场地场所信息实体类
 */
@Entity
@Table(name = "DZJJH_VENUE", schema = "DZJJH", catalog = "")
public class VenueEntity {
    //主键
    private String placeId;
    //场所场地
    private String placeName;
    //所在地区
    private String area;
    //所在地区行政区划代码
    private String areaNumber;
    //责任单位
    private String responsibleDept;
    //责任单位统一社会信用代码
    private String enterpriseCreditCode;
    //责任人
    private String chargePerson;
    //责任人证件类型
    private String certificateType;
    //责任人证件编码
    private String certificateNumber;
    //联系电话
    private String contactTel;
    //场所用途
    private String placePurpose;
    //场所规模
    private String placeScale;
    //投入使用开始时间
    private Date startDate;
    //使用寿命
    private String deviceLifetime;
    //修改时间
    private Date updateTime;
    //修改人
    private String updateUser;
    //逻辑删除标识
    private String delFlag;
    private String createUser;
    private Date createTime;
    //状态标识 0 暂存 1 提交
    private String status;


    @Id
    @Column(name = "PlaceId")
    public String getPlaceId() {
        return placeId;
    }

    public void setPlaceId(String placeId) {
        this.placeId = placeId;
    }
    @Basic
    @Column(name = "Place_Name")
    public String getPlaceName() {
        return placeName;
    }

    public void setPlaceName(String placeName) {
        this.placeName = placeName;
    }
    @Basic
    @Column(name = "Area")
    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }
    @Basic
    @Column(name = "Area_Number")
    public String getAreaNumber() {
        return areaNumber;
    }

    public void setAreaNumber(String areaNumber) {
        this.areaNumber = areaNumber;
    }
    @Basic
    @Column(name = "Responsible_Dept")
    public String getResponsibleDept() {
        return responsibleDept;
    }

    public void setResponsibleDept(String responsibleDept) {
        this.responsibleDept = responsibleDept;
    }
    @Basic
    @Column(name = "Enterprise_Credit_Code")
    public String getEnterpriseCreditCode() {
        return enterpriseCreditCode;
    }

    public void setEnterpriseCreditCode(String enterpriseCreditCode) {
        this.enterpriseCreditCode = enterpriseCreditCode;
    }
    @Basic
    @Column(name = "Charge_Person")
    public String getChargePerson() {
        return chargePerson;
    }

    public void setChargePerson(String chargePerson) {
        this.chargePerson = chargePerson;
    }
    @Basic
    @Column(name = "Certificate_Type")
    public String getCertificateType() {
        return certificateType;
    }

    public void setCertificateType(String certificateType) {
        this.certificateType = certificateType;
    }
    @Basic
    @Column(name = "Certificate_Number")
    public String getCertificateNumber() {
        return certificateNumber;
    }

    public void setCertificateNumber(String certificateNumber) {
        this.certificateNumber = certificateNumber;
    }
    @Basic
    @Column(name = "Contact_Tel")
    public String getContactTel() {
        return contactTel;
    }

    public void setContactTel(String contactTel) {
        this.contactTel = contactTel;
    }
    @Basic
    @Column(name = "Place_Purpose")
    public String getPlacePurpose() {
        return placePurpose;
    }

    public void setPlacePurpose(String placePurpose) {
        this.placePurpose = placePurpose;
    }
    @Basic
    @Column(name = "Place_Scale")
    public String getPlaceScale() {
        return placeScale;
    }

    public void setPlaceScale(String placeScale) {
        this.placeScale = placeScale;
    }
    @Basic
    @Column(name = "Start_Date")
    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }
    @Basic
    @Column(name = "Device_Lifetime")
    public String getDeviceLifetime() {
        return deviceLifetime;
    }

    public void setDeviceLifetime(String deviceLifetime) {
        this.deviceLifetime = deviceLifetime;
    }
    @Basic
    @Column(name = "Update_Time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    @Basic
    @Column(name = "Update_User")
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }
    @Basic
    @Column(name = "Del_Flag")
    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }
    @Basic
    @Column(name = "Create_User")
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }
    @Basic
    @Column(name = "Create_Time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    @Basic
    @Column(name = "Status")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        VenueEntity that = (VenueEntity) o;
        return Objects.equals(placeId, that.placeId) &&
                Objects.equals(placeName, that.placeName) &&
                Objects.equals(area, that.area) &&
                Objects.equals(areaNumber, that.areaNumber) &&
                Objects.equals(responsibleDept, that.responsibleDept) &&
                Objects.equals(enterpriseCreditCode, that.enterpriseCreditCode) &&
                Objects.equals(chargePerson, that.chargePerson) &&
                Objects.equals(certificateType, that.certificateType) &&
                Objects.equals(certificateNumber, that.certificateNumber) &&
                Objects.equals(contactTel, that.contactTel) &&
                Objects.equals(placePurpose, that.placePurpose) &&
                Objects.equals(placeScale, that.placeScale) &&
                Objects.equals(startDate, that.startDate) &&
                Objects.equals(deviceLifetime, that.deviceLifetime) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(updateUser, that.updateUser) &&
                Objects.equals(delFlag, that.delFlag)&&
                Objects.equals(createUser,that.createUser)&&
                Objects.equals(createTime,that.createTime)&&
                Objects.equals(status,that.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(placeId, placeName, area, areaNumber, responsibleDept, enterpriseCreditCode, chargePerson, certificateType, certificateNumber, contactTel, placePurpose, placeScale, startDate, deviceLifetime, updateTime, updateUser, delFlag,createUser,createTime,status);
    }
}
